<?php

require_once dirname(__FILE__).'/../lib/newsGeneratorConfiguration.class.php';
require_once dirname(__FILE__).'/../lib/newsGeneratorHelper.class.php';

/**
 * news actions.
 *
 * @package    s-test
 * @subpackage news
 * @author     Your name here
 * @version    SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class newsActions extends autoNewsActions
{
    public function  executeCreate(sfWebRequest $request) {
        $ktd_news = new KTDNews();
        $ktd_news->setAuthorId($this->getUser()->getGuardUser()->getId());

        $form = new BackendKTDNewsForm($ktd_news);
        $this->processForm($request, $form);

        $this->setTemplate('new');
    }
}
